<html><title>Kegiatan</title>
<head></head>
<body>
<h1>Ini lo kerjaan e orang2</h1>
<?php
if (empty ($hasil)) {
	echo "Wah kok gabut sih? :'";
} else {
?>
<h3> Daftar Kegiatan </h3>
<table border=1>
<tr><th> No </th>
	<th> Nama Kegiatan </th>
	<th> Deskripsi </th>
	<?php if ($id_group > 0){
		echo "<html>";
		echo "<th> Pilihan </th>";
		echo "</html>";
	}
	?>
</tr>
<?php
$no = 1;
foreach($hasil as $data):
?>
<tr><td><?php echo $no; ?></td>
	<td><?php echo $data->nama_kegiatan; ?></td>
	<td><?php echo $data->deskripsi; ?></td>
	<?php $group = $data->idkegiatan;
		/*if ($id_group == 1){
		echo "<html><td>";
		echo anchor('cprofil/gantiorang/'.$group,'Ubah |');
		echo anchor('cprofil/buangorang/'.$group,' Hapus |');
		echo anchor('cprofil/setujuiorang/'.$group,' Validasi');
		echo "</td></html>";
	}else if($data->id_pemandu == $this->session->userdata('id_pemandu')){
		echo "<html><td>";
		echo anchor('cprofil/gantiorang/'.$group,'Inilah Anda. Ubah?');
		echo "</td></html>";
	}else if ($this->session->userdata('login') == TRUE) {
		echo "<html><td>Dia bukan Anda</td></html>";
	}*/?>
</tr>
<?php
$no++;
endforeach;
?>
</table>
<?php
echo anchor('homez','Rumah');
}
?>
</body>
</html>